<li class="dropdown active">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
       aria-expanded="false">项目 {% if request.tracer.project %}({{ request.tracer.project.p_name }}){% endif %}<span class="caret"></span></a>

    <ul class="dropdown-menu">
        {% if my_creator %}
        <li><i class="fa fa-tasks" aria-hidden="true"></i> 我的任务</li>
        {% for item in my_creator %}
        <li><a href="{% url 'websass:dashboard' project_id=item.id %}">暗网项目-《{{item.p_name}}》</a></li>
        {% endfor %}
        <li role="separator" class="divider"></li>
        {% endif %}
        {% if join_project %}
        <li><i class="fa fa-life-ring" aria-hidden="true"></i> 参与任务</li>
        {% for item in join_project %}
        <li><a href="{% url 'websass:dashboard' project_id=item.project.id %}">参加暗网项目-《{{item.prject.p_name}}》</a>
        </li>
        {% endfor %}
        <li role="separator" class="divider"></li>
        {% endif %}
        <li><a href="{% url 'websass:project_list' %}">所有任务</a></li>
    </ul>
</li>
